/*
 * An XML document type.
 * Localname: querymsgResponse
 * Namespace: http://api.clickatell.com/soap/webservice
 * Java type: com.clickatell.api.soap.webservice.QuerymsgResponseDocument
 *
 * Automatically generated - do not modify.
 */
package com.clickatell.api.soap.webservice.impl;
/**
 * A document containing one querymsgResponse(@http://api.clickatell.com/soap/webservice) element.
 *
 * This is a complex type.
 */
public class QuerymsgResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.clickatell.api.soap.webservice.QuerymsgResponseDocument
{
    
    public QuerymsgResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName QUERYMSGRESPONSE$0 = 
        new javax.xml.namespace.QName("http://api.clickatell.com/soap/webservice", "querymsgResponse");
    
    
    /**
     * Gets the "querymsgResponse" element
     */
    public com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse getQuerymsgResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse target = null;
            target = (com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse)get_store().find_element_user(QUERYMSGRESPONSE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "querymsgResponse" element
     */
    public void setQuerymsgResponse(com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse querymsgResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse target = null;
            target = (com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse)get_store().find_element_user(QUERYMSGRESPONSE$0, 0);
            if (target == null)
            {
                target = (com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse)get_store().add_element_user(QUERYMSGRESPONSE$0);
            }
            target.set(querymsgResponse);
        }
    }
    
    /**
     * Appends and returns a new empty "querymsgResponse" element
     */
    public com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse addNewQuerymsgResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse target = null;
            target = (com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse)get_store().add_element_user(QUERYMSGRESPONSE$0);
            return target;
        }
    }
    /**
     * An XML querymsgResponse(@http://api.clickatell.com/soap/webservice).
     *
     * This is a complex type.
     */
    public static class QuerymsgResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.clickatell.api.soap.webservice.QuerymsgResponseDocument.QuerymsgResponse
    {
        
        public QuerymsgResponseImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName RETURN$0 = 
            new javax.xml.namespace.QName("", "return");
        
        
        /**
         * Gets the "return" element
         */
        public com.clickatell.api.soap.webservice.ArrayOfString getReturn()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.clickatell.api.soap.webservice.ArrayOfString target = null;
                target = (com.clickatell.api.soap.webservice.ArrayOfString)get_store().find_element_user(RETURN$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "return" element
         */
        public void setReturn(com.clickatell.api.soap.webservice.ArrayOfString xreturn)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.clickatell.api.soap.webservice.ArrayOfString target = null;
                target = (com.clickatell.api.soap.webservice.ArrayOfString)get_store().find_element_user(RETURN$0, 0);
                if (target == null)
                {
                    target = (com.clickatell.api.soap.webservice.ArrayOfString)get_store().add_element_user(RETURN$0);
                }
                target.set(xreturn);
            }
        }
        
        /**
         * Appends and returns a new empty "return" element
         */
        public com.clickatell.api.soap.webservice.ArrayOfString addNewReturn()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.clickatell.api.soap.webservice.ArrayOfString target = null;
                target = (com.clickatell.api.soap.webservice.ArrayOfString)get_store().add_element_user(RETURN$0);
                return target;
            }
        }
    }
}
